﻿package vklib 
{
	import flash.display.Sprite;
	import vklib.IVkMain;
	import vklib.VkApi;
	
	/**
	 * ...
	 * @author apisoc@gmail.com
	 * 
	 * 
	 */
	/**
	 * AS3 startup module base class, must be implemented by user.
	 * It is entry poit in vklib
	 * 
	 */
	public class VkMain extends Sprite implements IVkMain
	{
		// AS3 startup module only  inherits from Sprite
		public function get sprite():Sprite { return this; }

		public function VkMain() 
		{
			VkApi.createInstance(this);
			VkApi.debug('VkMain initializing - ' + VkApi.instance.counter);
		}
		
		public function run():void { VkApi.debug('Abstract VkMain.run called!') }
	}

}